//
//  WallectService.h
//  Bees
//
//  Created by NowYouCanSee on 2018/12/26.
//  Copyright © 2018 xiaohan. All rights reserved.
//

#import "BaseServer.h"
#import "TokenInfo.h"
NS_ASSUME_NONNULL_BEGIN
typedef void(^CompleteBlock)(NSString*errorMsg,NSArray *accounts , BOOL isSuccess);

@interface WallectService : BaseServer
@property (nonatomic,strong) NSString *publicKey;
@property (nonatomic,strong) EosPrivateKey *ownerPrivateKey;
@property (nonatomic,strong) EosPrivateKey *activePrivateKey;
@property (nonatomic,strong) NSString *invite_code;
@property (nonatomic,strong) NSString *accountName;
@property (nonatomic,strong) NSString *pswTip;
@property (nonatomic,strong) NSString *psw;

///token列表
@property (nonatomic,strong) NSMutableArray <TokenInfo*>*tokenList;
@property (nonatomic,strong) NSString *tokenKey;


///获取账号
- (void)getKeyAccountsComplete:(CompleteBlock)complete;
///获取y邀请码
- (void)getTheInvitationCodeComplete:(void(^)(void))complete;
///检测帐号是否可用
- (void)validAccountComplete:(void(^)(BOOL,NSString*errorMsg))complete;
///创建账号
- (void)creatAccoutComplete:(void(^)(BOOL,NSString*errorMsg))complete;
///Token列表
- (void)getTokenListIsMore:(BOOL)isMore completion:(void(^)(BOOL success, BOOL isHaveNextPage,NSString *msg))completion;
@end

NS_ASSUME_NONNULL_END
